package java67_14.score;

import java.util.Scanner;

public class TestScore2 {

	public static void main(String[] args) {
		// 不用对象传递
		Scanner in = new Scanner(System.in);

		System.out.println("请输入学生姓名以及三门课成绩:");
		String name = in.next();
		float db = in.nextFloat();
		float html = in.nextFloat();
		float java = in.nextFloat();
		System.out.println("学生信息如下:姓名:" + name);
		System.out.println("java " + java + "分,html:" + html + "分,db " + db + "分");

		System.out.println(">>>>>>>>>>>>>>>>>>>>开始计算:");
		Jiaowuchu ch = new Jiaowuchu();
		float avg = ch.calcAvg2(name, java, html, db);

		System.out.println(">>>>>>>>>>>>>>>>算完了:");
		System.out.println("你的平均分是:" + avg);
		System.out.println("学生信息如下:姓名:" + name);
		System.out.println("java " + java + "分,html:" + html + "分,db " + db + "分");

	}

}
